Since Version 2.0, ProRen is featuring an Arexxport, making ProRen even more
flexible. ProRen's arexxport features three kinds of commands:
- Commands that start an action.
- Commands that set a gadgets status, they are introduced with SET.
- Commands that get a gadgets status, they are introduced with GET.
Commands, that start an action are:
- START
ProRen starts renaming files.
- CLEARFILENOTES
The filenotes of the selected files are removed.
- PARENT
ProRen changes to the parent directory.
- MARK ALL/NONE/INVERT
- ALL: all files in the filelist are selected.
- NONE: all files in the filelist are deselected.
- INVERT: selected files are deselected, not selected file are selected.
- UNDO
ProRen renames the selected files to their old names.
- DIRLISTREADY
As MUI reads a directory on a seperate task, it's necessary to wait in arexx-
scripts, until the directory has been read completely. This command returns 0,
if you still have to wait and 1 if the directoryreading has been completet.
The arexx-script reverse.rexx shows an example usage.
Commands, that set/get the status of a gadget:
If the status shall be set, the command must be introduced by SET. If the
status shall be get, there must be a GET introducing the command. SET
commands do not return a value but you have to give a parameter. GET
commands do not use a parameter, but return a value in result.
Example:
SET BASENAME 'Anim.'
name=GET BASENAME
oldbase=result /* set oldbase to the got basename */
- BASENAME 'string'
- SET: Changes the Basename to 'string'. 'string' should be written in
quotes, this makes it possible to have small letters. This is true
for all strings.
- GET: Returns the current Basename in result.
- INDEX -99999 - 999999
- SET: Changes the Startnumber to a value from 0 to 1.000.000.
- GET: The current Startnumber is returned in result.
- EXTENSION 'string'
- SET: The Extension is set to 'string'.
- GET: The current Extension is returned in result.
- DIRECTORY 'string'
- SET: This sets a new directory. The directory is then shown in the
filelist.
- GET: The path of the current directory is returned in result.
- PATTERN 'string'
- SET: Changes the Pattern to 'string' and activates it.
- GET: The current Pattern is returned in result.
- TEMPNAME 'string'
- SET: The temporary filename is changed to 'string'.
- GET: The current temporary filename is returned in result.
- DIGITS 1-6
- SET: Changes the amount of digits to a value from 1 to 6.
- GET: The current value is returned in result.
- ONGAP <request/keep/delete/abort>
- SET: The behavior on gaps is set with the keywords ASK, LEAVE and CLOSE
- GET: ASK, LEAVE or CLOSE is returned in result,
depending on the status of the gadget.
- ERRORNAME 'string'
- SET: The Errorname is set to 'string'.
- GET: The current Errorname is returned in result.
- ONERROR <request/rename/abort>
- SET: The behavior on errors (already existing files) is set with the keywords
ASK, RENAME and CANCEL
- GET: ASK, RENAME or CANCEL is returned as result,
depending on the status of the gadget.
- SEARCHINDEX <on/off>
- SET: The "Search Index" gadget is checked (ON) or unchecked (OFF).
- GET: Depending on the status of the gadget ON or OFF is returnded.
- SEARCHSIGN <on/off>
- SET: The "Searchsign" gadget is checked (ON) or unchecked (OFF)
- GET: Depending on the status of the gadget ON or OFF is returned.
- UNDOACTIVE <on/off>
- SET: The "Undo active" gadget is checked (ON) or unchecked (OFF).
- GET: Depending on the status of the gadget ON or OFF is returnded.
- VIEWER 'string'
- SET: The external viewer is set. 'string' should include the complete path
and name of the viewer.
- GET: Path and name of the external viewer are returned in result.